<fieldset id="list">
	<legend>Messages Privés {%ifnotequal type "send"%}Reçus{%else%}Envoyés{%endifnotequal%}</legend>
	<dl> 
	{% for thread in threads|dictsortreversed:"start" %}
	<dt class="s{% if thread.author == pseudo %}{{thread.stateOut}}
					{%else%}{{thread.stateIn}}
					{%endif%} {{thread.author}}" >
					<a href="/profil/{%if type == "send"	%}{{thread.destin}}
									{%else%}{{thread.author}}{%endif%}" >
				{%if type == "send"%}{{thread.destin}}{%else%}{{thread.author|render_app}}{%endif%}
			</a>
		</dt>
		<dd>
			<a href="/mp?read={{ thread.key }}&amp;type={{type}}">
			{{thread.subject|truncatewords:8}}</a>
		</dd>
	{% endfor %}
	</dl>
</fieldset>
